<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %></h1>
<br/>
    <%--牢记文件上传三个要求
        1.提交方式必须是POST
        2、文件类型必须是enctype="multipart/form-data"
        3.

    --%>
    <form action="${pageContext.request.contextPath}/uploadServlet" method="post" enctype="multipart/form-data">
            用户名:<input type="text" name="name"><br>
            <input type="file" name="fileP"><><br>
            <input type="submit" value="上传">
    </form>
</body>
</html>